import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'Login',
    icon: 'el-icon-s-platform',
    hidden: true,
    component: () => import('../views/Login.vue'),
  },
  {
    path: '/search',
    name: 'Search',
    icon: 'el-icon-s-platform',
    hidden: true,
    component: () => import('../views/Search.vue'),
  },
  {
    path: '/summary',
    name: 'Summary',
    icon: 'el-icon-s-platform',
    component: () => import('../views/Summary.vue'),
  },
  {
    path: '/monthAnalysis',
    name: 'MonthAnalysis',
    icon: 'el-icon-s-platform',
    component: () => import('../views/MonthAnalysis.vue'),
  },
  {
    path: '/algorithm',
    name: 'Algorithm',
    // hidden: true,
    icon: 'el-icon-s-platform',
    component: () => import('../views/Algorithm.vue'),
  },
  {
    path: '/summary_detail',
    name: 'Summary_detail',
    icon: 'el-icon-s-platform',
    component: () => import('../views/Summary_detail.vue'),
  },
]

const router = new VueRouter({
  routes,
})

export default router
